home *** CD-ROM | disk | FTP | other *** search
/ Logiciels PC 7 / logiciel pc 7.iso / Divers / Prog / Delphi / ZipManager / DISK1 / _SETUP.1 / readme.txt < prev    next >
Text File  |  1997-08-27  |  2KB  |  76 lines

  1.  
  2.  
  3. TFileDrag Component - Adds support for dropping files from explorer onto a 
  4.                       a Delphi form.
  5.  
  6. Version 1.02
  7.  
  8. Copyright (c) 1996, 1997 - Erik C. Nielsen ( ErikNielsen@compuserve.com )
  9. All Rights Reserved                           ( Erik_Nielsen@PattersonDental.Com )
  10.  
  11. **** Changes from V 1.1 ****
  12.  
  13. 1. Added the DropPoint property, which allows you to retrieve the mouse 
  14.    coordinates where the files were dropped.
  15.  
  16. **** Changes from V 1.0 ****
  17.  
  18. 1. Fixed several minor bugs, including not setting the enabled property 
  19.    properly in the constructor.  
  20.    
  21. 2. Removed the separate string lists for full name, file name, and extension.
  22.    Replaced with just one list with full name.  I had forgotten about the
  23.    Delphi functions ExtractFileExt and ExtractFileName which will get the
  24.    extension and name portions for you.
  25.  
  26. ****************************
  27.  
  28.  
  29. I. Installation
  30.  
  31.    1. Copy FILEDRAG.PAS and FILEDRAG.DCR into a directory.
  32.    
  33.    2. In Delphi, select Component - Install menu option.
  34.    
  35.    3. Select Add... button
  36.    
  37.    4. Select Browse
  38.    
  39.    5. Select filedrag.pas in the directory from step 1
  40.    
  41.    6. Select OK
  42.    
  43.    The component library will now re-compile, and when it is finished you should
  44.    have a TFileDrag component on your System tab.
  45.    
  46.    
  47. II. Using   
  48.  
  49.    To be able to drop files from the explorer onto your app:
  50.    
  51.    1. Place a TFileDrag component on your form
  52.    
  53.    2. Add a handler for the OnDrop event
  54.    
  55.    3. Enable dropping by changing EnableDrop to TRUE in the property manager
  56.       or in your code somewhere.
  57.       
  58.    4. Run your app and drag some files from the explorer.
  59.  
  60.     Files is a string list that contains the fully qualified file name of each file
  61.    dropped on the application.  Use the library functions ExtractFileName and
  62.    ExtractFileExt to get only the file name or extension.  
  63.    
  64.    FileCount is a read-only property that contains the number of files dropped.
  65.    
  66.    See the example program for a demo of how to use this component.
  67.    
  68.    
  69. III. Legal Junk
  70.  
  71.    This component is provided as Free-Ware.  You can use it however you like, but
  72.    you may not sell it as a Delphi component or as part of a Delphi component collection.
  73.    
  74.    If you have problems/bugs/requested features, e-mail me and I will try to address them,
  75.    but I can't make any guarantees.
  76.